<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" dir="ltr" id="minwidth" >
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="keywords" content="vivo, VIVO, Vivo, CMS" />
	<meta name="description" content="VIVO! - 网站架设引擎及内容管理系统" />
	<title>VIVO - 管理后台</title>
	<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
	<link href="<?php echo $adminPath; ?>/css/template.css" rel="stylesheet" type="text/css" />
	<!--[if IE 7]><link href="<?php echo $adminPath; ?>/css/ie7.css" rel="stylesheet" type="text/css" /><![endif]-->
	<!--[if lte IE 6]><link href="<?php echo $adminPath; ?>/css/ie6.css" rel="stylesheet" type="text/css" /><![endif]-->
	<script type="text/javascript" src="<?php echo $commonPath; ?>/js/jquery-1.4.4.js"></script>
	
	<link href="<?php echo $commonPath; ?>/css/ui-lightness/jquery-ui-1.8.7.custom.css" rel="stylesheet" type="text/css" /> 
	<script type="text/javascript" src="<?php echo $commonPath; ?>/js/jquery-ui-1.8.7.custom.min.js"></script>
	
	<script type="text/javascript" src="<?php echo $adminPath; ?>/js/common.js"></script>
	<script type="text/javascript">
	jQuery(document).ready(function($) {
		/**
		 * 弹出确认框 - 提示是否勾选需要操作的项
		 * @author 宋欢
		 */
		$("#toolbar-apply").click(function() {
			if ($(":checkbox[name='group_id[]'][checked]").length == 0 && 
				$(":checkbox[name='new_group_id[]'][checked]").length == 0) {
				confirm("groups-edit-confirm", "请先勾选需要操作的项！");
			}
			else {
				setHide("do", "apply");
				document.adminForm.submit();
			}
		});
		$("#toolbar-delete").click(function() {
			if ($(":checkbox[name='group_id[]'][checked]").length == 0 && 
				$(":checkbox[name='new_group_id[]'][checked]").length == 0) {
				confirm("groups-edit-confirm", "请先勾选需要操作的项！");
			}
			else {
				prompt("groups-edit-confirm", "确定要删除选中项吗？", function() {
					setHide("do", "delete");
					document.adminForm.submit();
				});
			}
		});
	});
	</script>
</head>
<body id="minwidth-body">
	<?php $this->display('common/header.phtml'); ?>
	
	<!-- start content-box -->
	<div id="content-box">
		<div class="border">
			<div class="padding">
		
				<!-- start toolbar-box -->
				<div id="toolbar-box">
					<!-- start t -->
					<div class="t"> 
						<div class="t"> 
							<div class="t"></div> 
						</div>
					</div>
					<!-- end t -->
					<div class="m"> 
						<!-- start toolbar -->
						<div class="toolbar" id="toolbar"> 
							<table class="toolbar"><tr>

								<td class="button" id="toolbar-apply">
									<a href="javascript:void();" class="toolbar"><span class="icon-32-apply" title="应用"></span>应用</a>
								</td>
								
								<td class="button" id="toolbar-delete"> 
									<a href="javascript:void();" class="toolbar"><span class="icon-32-delete" title="彻底删除"></span>彻底删除</a> 
								</td>
								
							</tr></table> 
						</div> 
						<!-- end toolbar -->
						<div class="header icon-48-user">管理组: <small>[ 列表 ]</small></div> 
						<div class="clr"></div> 
					</div> 
					<!-- start b -->
					<div class="b">
						<div class="b">
							<div class="b"></div>
						</div>
					</div>
					<!-- end b -->
				</div>
				<!-- end toolbar-box -->
		
   				<div class="clr"></div>
   				<?php $this->display('common/message.phtml'); ?>
				
				<!-- start element-box -->
				<div id="element-box">
					<div class="t">
						<div class="t">
							<div class="t"></div>
						</div>
					</div>
					<div class="m">
						<?php include '_form.phtml'; ?>
						<div class="clr"></div>
					</div>
					<!-- start b -->
					<div class="b">
						<div class="b">
							<div class="b"></div>
						</div>
					</div>
					<!-- end b -->
				</div>
				<!-- end element-box -->
		
				<noscript>!警告! 必须启用Javascript管理后台才能正常运作</noscript>
				<div class="clr"></div>
			</div><div class="clr"></div>
		</div>
	</div>
	<!-- end content-box -->
	
	<!-- start groups-del-confirm -->
	<div id="groups-edit-confirm" title="确定不满足修改或添加条件！" style="display: none">
	<p>
		<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>
		<label id="groups-edit-confirm-box" style="color: #FF0000"></label>
	</p>
	</div>
	<!-- end groups-del-confirm -->
	
	<?php $this->display('common/footer.phtml'); ?>
</body>
</html>
